package process0.ast;

import java.util.Vector;

import process0.visitor.Visitor;

public class States implements Node{
	String actionId;
	String endState;
	Vector<String> initialStates = new Vector<String>();

	public String getActionId() {
		return actionId;
	}
	public void setActionId(String actionId) {
		this.actionId = actionId;
	}
	
	public String getEndState() {
		return endState;
	}
	public void setEndState(String endState) {
		this.endState = endState;
	}
	public Vector<String> getInitialStates() {
		return initialStates;
	}
	public void setInitialStates(Vector<String> beginStates) {
		this.initialStates = beginStates;
	}
	public void addInitialState(String beginState){
		initialStates.add(beginState);
	}
//	public String toStateString(){
//		String out = this.getEndState() + "->";
//		for (String s : beginStates) {
//			out += " " +  s;
//		}
//		return  out;
//	}
	public void accept(Visitor visitor) {
		visitor.visit(this);
	}
}
